<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@page import="support.*, java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

<h1>Residency</h1>
		<%
		
			student stu = (student)session.getAttribute("student");
		
		
			String firstName = (String)stu.getAttribute("firstName");
		    String lastName = (String)stu.getAttribute("lastName");
			String middleName = (String)stu.getAttribute( "middleName" );
			String citizenship = (String)stu.getAttribute( "citizenship" );
			String residence = (String) stu.getAttribute( "residence" );
			String street = request.getParameter( "street" );
			String city = request.getParameter( "city" );
			String phoneCode = request.getParameter( "phoneCode" );
			String phone = request.getParameter( "phone" );
			stu.setAttribute("street",street);
			stu.setAttribute("city",city);
			stu.setAttribute("phoneCode",phoneCode);
			stu.setAttribute("phone",phone);
			session.setAttribute("student", stu);
		%>
	<h2><%= firstName + " " + middleName + " " + lastName%></h2>
	<h2><%= "Country of Citizenship: " + citizenship%></h2>
	<h2><%= "Country of Residence: " + residence %> </h2>
	<h2>Address </h2>
	<h3>Street: <%= street %></h3>
	<h3>City: <%= city %></h3>
	<h3>Phone: <%= phone %></h3>
	<h3>Phone Code: <%= phoneCode %></h3>
	
	
	
	
	<form name="residentForm" action="location.jsp">
		<input type="radio" name="resident" value="US Permanent Resident" /> US Permanent Resident<br />
		<input type="radio" name="resident" value="Non-Resident" /> Non-Resident<br />
		<input type="submit" value="Click to Submit"/>
	</form> 
	
	

</body>
</html>